Ignore lib directory for exes check
authorAlex Crichton <alex@alexcrichton.com>
Tue, 8 Jul 2014 16:30:54 +0000 (09:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 8 Jul 2014 16:30:54 +0000 (09:30 -0700)
Apparently older versions of git report all contents of submodules in the
ls-files command!

Makefile

index 983c1073ce032f1aaa464edfe19aa2fbac5d15c4..7a422faff7ca88262bcc54b71641893710bd831c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ style:
        sh tests/check-style.sh
 
 no-exes:
-       find $$(git ls-files) -perm +111 -type f \
+       find $$(git ls-files | grep -v '^lib') -perm +111 -type f \
                -not -name '*.sh' -not -name '*.rs' | grep '.*' \
                && exit 1 || exit 0